<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('cross')->group(function () {
    Route::get('/home', 'Home\HomeController@index');//首页数据
    Route::get('/navs', 'Home\HomeController@navs');//顶部链接
    Route::any('/articleRecommend', 'Home\HomeController@articleRecommend');//文章推荐
    Route::any('/articleNewAndClick', 'Home\HomeController@articleNewAndClick');//最新文章，点击排行

    Route::any('/cate', 'Home\CateController@index');//分类首页数据
    Route::any('/articleByCate', 'Home\CateController@articleByCate');//分类文章

    Route::any('/article', 'Home\ArticleController@index');//分类文章

    Route::get('articleList', 'Home\ArticleController@articleList');//顶部链接
    Route::get('articles', 'Home\ArticleController@articles');//顶部链接





});